//
//  MHConst.h
//  MH
//
//  Created by SY on 2018/9/25.
//  Copyright © 2018年 SY. All rights reserved.
//

#ifndef MHConst_h
#define MHConst_h

#define MH_SELF_BUNDLE [NSBundle bundleForClass:[self class]]
#define MH_UIImageName(x) [UIImage imageNamed:x inBundle:SELF_BUNDLE compatibleWithTraitCollection:nil]

#define MH_WEAK_SELF __weak typeof(self) weakSelf = self
#define MH_STRONG_SELF __strong typeof(weakSelf) self = weakSelf

#define MH_SafeString(a)               ((((a)==nil)||([(a) isEqual:[NSNull null]])||((a).length==0))?@"":(a))

#define MH_GET_NUMStr(Num)  [NSString stringWithFormat:@"%zd",Num]

#define mlxPlaceholderImageName @"mlx_bg_placeholder"

#define mlxPlaceholderHeadName @"userCenter_default_head"


#define mhPlaceholderLoadName @"mh_load"


#define kAppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
#define IOS_VERSION               [[[UIDevice currentDevice] systemVersion] floatValue]
#define SysVersionLessThan(Version) IOS_VERSION < Version
#define UserDefaults              [NSUserDefaults standardUserDefaults]

#define WXH5PayDomain  @"mall.mlxing.com"

#define RouterSchemeName  @"mlx"

#define AlipayH5PayDomain  @"safepay"

#define kErrorCodeKey        @"reCode" // 操作成功
#define kData                @"data"
#define kReMsg               @"reMsg"
#define kErrorCode_success    @"0" // 操作成功
#define kErrorCode_error      @"-1" // 错误
#define kErrCode_overdue      @"-999" // 登录过期

static NSString * _Nullable const Network_Anomaly = @"网络连接异常，请稍后再试！";
static NSString * _Nullable const SignSecurity = @"huakuMD5"; // sign签名拼接的字符串

static NSString * _Nullable const HuanXingSignSecurity = @"IMSellerPwd"; // 环信sign签名拼接的字符串

//地图
static NSString * _Nullable const APIKey = @"d1b3392bd288dbd442aa0ef63ac8eb73";
static NSString * _Nullable const allPOISearchTypes = @"汽车服务|汽车销售|汽车维修|摩托车服务|餐饮服务|购物服务|生活服务|体育休闲服务|医疗保健服务|住宿服务|风景名胜|商务住宅|政府机构及社会团体|科教文化服务|交通设施服务|金融保险服务|公司企业|道路附属设施|地名地址信息|公共设施";

//开启第一个上线版本
//#define  MHFirstVersion

#endif /* MHConst_h */
